-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce FluxEmpty
Refaster rule
#815
Conversation
Looks good. No mutations were possible for these changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice improvements @Venorcis 🚀 !
error-prone-contrib/src/main/java/tech/picnic/errorprone/refasterrules/ReactorRules.java
Outdated
Show resolved
Hide resolved
error-prone-contrib/src/main/java/tech/picnic/errorprone/refasterrules/ReactorRules.java
Outdated
Show resolved
Hide resolved
Looks good. No mutations were possible for these changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I rebased and added a commit. I.c.w. #744 we could rewrite even more cases. (But we would be entering "just write a BugChecker
" territory.
Nice addition!
Updated suggested commit message:
Introduce `Flux{Empty,Just}` Refaster rules (#815)
3302046
to
6075395
Compare
Looks good. No mutations were possible for these changes. |
Will take a look at the new changes Monday and merge it 👍🏻. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't review all the extra operators in too much detail, but overall LGTM!
6075395
to
effcb21
Compare
Looks good. No mutations were possible for these changes. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
This is mainly intended to prevent
Flux.just()
, preferring the more expressiveFlux.empty()
, but while there why not prevent the othervararg
constructors from being used without arguments 🤷🏻♂️